<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" charset="utf-8">
	$.messager.progress({
		text : '数据加载中....',
		interval : 100
	});
</script>
<div style="padding: 5px;">
	<form id="userForm" method="post">
		<input name="cid" type="hidden" />
		<table class="tableForm">
			<tr>
				<th style="width: 55px;">登录名</th>
				<td><input name="cname" class="easyui-validatebox"
					data-options="required:'true',missingMessage:'请填写登录名称'"
					style="width: 150px;" /></td>
				<th style="width: 55px;">所属角色</th>
				<td><input name="roleIds" style="width: 150px;" />
				</td>
			</tr>
			<tr>
				<th>密码</th>
				<td><input name="cpwd" type="password" /></td>
				<td colspan="2" style="text-align: left;">如果不修改请留空</td>
			</tr>
			<tr>
				<th>所属公司</th>
				<td colspan="3"><select name="companyid"
					class="easyui-combogrid" style="width:390px"
					data-options="  
						 panelWidth: 500,  
						idField: 'id',
						loadMsg : '数据加载中....',
						toolbar:'#tb',
						editable:false,
						pagination : true,
							fit : true,
							pagePosition : 'bottom',
							pageSize : 20,
							pageList : [ 20, 40, 60, 100 ],
						 textField: 'companyname',  
						url: '${pageContext.request.contextPath}/main/sysClientAction!doNotNeedSession_combobox.action',  
						columns: [[  
						 {field:'companyname',title:'公司名称',width:120},  
						{field:'contactman',title:'联系人',width:80,align:'right'},  
						{field:'createtime',title:'创建时间',width:80,align:'right'},  
						{field:'province',title:'所在省份',width:200},  
						{field:'city',title:'所在城市',width:60,align:'center'}  
						]],  
						fitColumns: true"></select>
				</td>
			</tr>
			<tr>
				<th>创建时间</th>
				<td><input name="ccreatedatetime" class="easyui-datetimebox"
					data-options="disabled:'false'" style="width: 155px;" /></td>
				<th>修改时间</th>
				<td><input name="cmodifydatetime" class="easyui-datetimebox"
					data-options="disabled:'false'" style="width: 150px;" /></td>
			</tr>
		</table>
	</form>
</div>
<div id="tb" style="padding:3px">
	<span>公司名称:</span> <input id="companyname"
		style="border:1px solid #ccc"> 
		<span>联系人:</span> 
		<input id="contactman" style="border:1px solid #ccc"> 
		<a href="#" data-options="iconCls:'icon-search'" class="easyui-linkbutton" plain="true" onclick="doSearch()">查询</a>
</div>
<script type="text/javascript">
	function doSearch() {
		$('#tt').datagrid('load', {
			companyname : $('#productid').val(),
			contactman : $('#contactman').val()
			
		});
	}
</script>
